package cc.catface.dao.biz.app;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@ApiModel
@TableName("ap_article")
public class ApArticle {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    @TableField("title")
    @ApiModelProperty(value = "标题")
    private String title;
    @TableField("user_id")
    @ApiModelProperty(value = "用户ID")
    private long userId;
    @TableField("user_name")
    @ApiModelProperty(value = "作者昵称")
    private String userName;
    @TableField("channel_id")
    @ApiModelProperty(value = "文章所属频道ID")
    private long channelId;
    @TableField("channel_name")
    @ApiModelProperty(value = "频道名称")
    private String channelName;
    @TableField("layout")
    @ApiModelProperty(value = "文章布局(0无图1单图2多图)")
    private long layout;
    @TableField("flag")
    @ApiModelProperty(value = "文章标记(0普通1热点2置顶3精品)")
    private long flag;
    @TableField("images")
    @ApiModelProperty(value = "文章图片,多张用英文逗号分隔")
    private String images;
    @TableField("labels")
    @ApiModelProperty(value = "文章标签(最多3个用英文逗号分隔)")
    private String labels;
    @TableField("likes")
    @ApiModelProperty(value = "点赞数量")
    private long likes;
    @TableField("collection")
    @ApiModelProperty(value = "收藏数量")
    private long collection;
    @TableField("comment")
    @ApiModelProperty(value = "评论数量")
    private long comment;
    @TableField("views")
    @ApiModelProperty(value = "阅读数量")
    private long views;
    @TableField("province_id")
    @ApiModelProperty(value = "省")
    private long provinceId;
    @TableField("city_id")
    @ApiModelProperty(value = "市")
    private long cityId;
    @TableField("county_id")
    @ApiModelProperty(value = "区县")
    private long countyId;
    @TableField("created_time")
    @ApiModelProperty(value = "创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createdTime;
    @TableField("publish_time")
    @ApiModelProperty(value = "发布时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date publishTime;
    @TableField("sync_status")
    @ApiModelProperty(value = "同步状态")
    private long syncStatus;
    @TableField("origin")
    @ApiModelProperty(value = "来源")
    private long origin;
    @TableField("overview")
    @ApiModelProperty(value = "内容概要")
    private String overview;

}
